package com.shpng.cheapenglish.db;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class UserWord {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private long wordId;

	@Persistent
	private int reciteTimes;

	@Persistent
	private int averageDegree;

	@Persistent
	private long unitId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public long getWordId() {
		return wordId;
	}

	public void setWordId(long wordId) {
		this.wordId = wordId;
	}

	public int getReciteTimes() {
		return reciteTimes;
	}

	public void setReciteTimes(int reciteTimes) {
		this.reciteTimes = reciteTimes;
	}

	public int getAverageDegree() {
		return averageDegree;
	}

	public void setAverageDegree(int averageDegree) {
		this.averageDegree = averageDegree;
	}

	public long getUnitId() {
		return unitId;
	}

	public void setUnitId(long unitId) {
		this.unitId = unitId;
	}

}
